const mixin = {
  data() {
    return {
      count: 1,
    };
  },
  mounted() {
    debugger;
    console.log("mixin mounted");
    this.doFetchCount();
  },
  methods: {
    doFetchCount() {
      new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve(9);
        }, 1000);
      }).then((res) => {
        this.count = res;
      });
    },
  },
};

export default mixin;
